package com.example.demo.service;

import com.example.demo.web.rest.evt.NoticeByIdEvt;
import com.example.demo.web.rest.evt.NoticeSaveEvt;
import com.example.demo.web.rest.evt.NoticeSearchEvt;
import com.example.demo.web.rest.vm.NoticeCodeList;
import com.example.demo.web.rest.vm.NoticeVm;

import java.util.List;

public interface NoticeService {
    public NoticeCodeList getCodeList();

    public Integer selectInfosCount(NoticeSearchEvt evt);

    public List<NoticeVm> selectInfos(NoticeSearchEvt evt);

    public NoticeVm selectInfoById(NoticeByIdEvt evt);

    public void saveInfos(NoticeSaveEvt evt) throws Exception;

    public void publishNotice(NoticeByIdEvt evt) throws Exception;

    public void deleteInfoById(NoticeByIdEvt evt);

    public List<NoticeVm> getLatestNotice(int limitNum);

}
